Skip to content

Conversation

@behinger
Copy link
Member

@behinger behinger commented Nov 28, 2025

  • I added a second test that is not supposed to fail, and started to move already one of the test-utilities to a common file

  • I was hoping to be able to test the dataverse upload with a DaRus-testenvironment, but within pytest it somehow fails to add the sibling. I gave up. The (hardcoded) API key is deactivated again

  • I moved around slightly when what happens in terms of dataverse_create and datalad_create -> I removed the flag buisness for datalad_create, and rather just create it if it doesnt exist already.

  • I slightly changed that dataverse_create receives the same logger as everyone else, so I can see the output in pytest

  • I added some dev-packages via uv add --dev .

  • I removed the "test-runner" script, I think it is better to just use pytest for everything via uv run pytest

  • added a github runner for the tests (fix Unit tests triggered by PR/ push events - Github Actions #38)

  • fixed that uv run pytest works with multiple tests. no idea why it fails - maybe some weird global state / config issue? it returns status 1 instead of already exists. maybe the second test runs somehow in the wrong environment?
    @ReboreExplore is there a reason you implemented the tests by running a dedicated process instead of letting pytest discover all tests?

@ReboreExplore
Copy link
Collaborator

Yes, the reason I didn't allow pytest to auto-discover at that time was as it only sees the test_ files, but while I was experimenting I only wanted to run tests on those folders which was complete (.py + data folder) (not to put a try-except catch in every test file to check the data folder additionally for successful run).

Otherwise, that is redundant for complete tests.

@behinger behinger merged commit a7b4b36 into main Nov 30, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unit tests triggered by PR/ push events - Github Actions

3 participants